home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 February / Chip_2003-02_cd1.bin / zkuste / xptools / install / Xsetup / setup.exe / {app} / plugins / XQ AutoExit HungApps.xpl < prev    next >
Text File  |  2002-10-20  |  2KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows NT/2K/XP\10) Program Shutdown"
  5. "UIPATH 2"="Startup/Shutdown\Shutdown\Windows 9x/ME\20) Shutdown Options"
  6. "NAME"="AutoEnd Programs"
  7. "VERSION"="1.15"
  8. "OSVERSION"="111111"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Auto End Hung Programs"
  11. "DESCRIPTION 1"="When the computer is about to be shut down, it is possible that a buggy or older program can't be ended because it locks up."
  12. "DESCRIPTION 2"="If this option is activated, the program is automatically terminated upon shut down."
  13. "DESCRIPTION 3"="If this option is deactivated, Windows displays an error message asking the user to terminate a non-responding program manually or perform a shut down."
  14. "DESCRIPTION 4"="Please note: This setting only affects the current user."
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com/"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="Applies to all 32-bit Windows releases. Updated description."
  19. "COMMENT 2"="More info @ MS TechNet: http://www.microsoft.com/technet/winnt/regtwk.asp"
  20. "COMMENT 3"="More info @ MS TechNet: http://www.microsoft.com/technet/win2000/systeman.asp"
  21. "COMMENT 4"="Thanks to Wayne M. [wmartins@mn.rr.com] for the current user notice!"
  22.  
  23. 'Declaration of some constants
  24. sP="HKCU\Control Panel\Desktop\"
  25. sV1="AutoEndTasks"
  26.  
  27. 'Called when the Plugin is started
  28. Sub Plugin_Initialize
  29.  i=RegReadValue(sp & sv1)
  30.  if i=1 then SetUIElement 1,true
  31. End Sub
  32.  
  33. 'Called when the Plugin should validate the Data the user has entered
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37. 'Called when the Plugin should apply the changes
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  b=GetUIElement(1)
  40.  if b=true then 
  41.   Call RegWriteValue(sp&sv1,1,1)
  42.  else
  43.   Call RegWriteValue(sp&sv1,0,1)
  44.  end if
  45.  
  46. End Sub
  47.  
  48. 'Called when the Plugin is about to be removed from memory
  49. Sub Plugin_Terminate
  50. End Sub
  51.